#pragma once

// ActivexDemoCtrl.h : Declaration of the CActivexDemoCtrl ActiveX Control class.


// CActivexDemoCtrl : See ActivexDemoCtrl.cpp for implementation.

class CActivexDemoCtrl : public COleControl
{
	DECLARE_DYNCREATE(CActivexDemoCtrl)

// Constructor
public:
	CActivexDemoCtrl();

// Overrides
public:
	virtual void OnDraw(CDC* pdc, const CRect& rcBounds, const CRect& rcInvalid);
	virtual void DoPropExchange(CPropExchange* pPX);
	virtual void OnResetState();

// Implementation
protected:
	~CActivexDemoCtrl();

	DECLARE_OLECREATE_EX(CActivexDemoCtrl)    // Class factory and guid
	DECLARE_OLETYPELIB(CActivexDemoCtrl)      // GetTypeInfo
	DECLARE_PROPPAGEIDS(CActivexDemoCtrl)     // Property page IDs
	DECLARE_OLECTLTYPE(CActivexDemoCtrl)		// Type name and misc status

// Message maps
	DECLARE_MESSAGE_MAP()

// Dispatch maps
	DECLARE_DISPATCH_MAP()

// Event maps
	DECLARE_EVENT_MAP()

// Dispatch and event IDs
public:
	enum {
		dispidAddFun = 1L
	};
protected:
	LONG AddFun(LONG num1, LONG num2);
};

